import { remote } from "electron";

export function toggleDevtool() {
    remote.getCurrentWebContents()
        .toggleDevTools();
}

export function listenKeydown() {
    window.addEventListener("keydown", (evt) => {
        switch (evt.key.toLowerCase()) {
            case "f12":
                toggleDevtool();
                break;
        }
    });
}
